<script setup>
import {useRoute , useRouter} from "vue-router"

const route = useRoute();
const router = useRouter();
let getInfo = () => {
  console.log(route.params);
  console.log(route.name);
  console.log(route.path);
  console.log(route.fullPath);
}
let goHome = () => {
  router.push('/')
}
</script>

<template>
  <h3>个人详情</h3>
  <button @click="getInfo">页面信息</button>
  <button @click="goHome">跳转</button>
</template>

<style scoped>

</style>